package com.rundatop.dao.model;

import java.util.List;

import javax.persistence.*;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

@Table(name = "`base_brand`")
public class BaseBrand {
    /**
     * 自增主键
     */
    @Id
    @Column(name = "`id`")
    private String id;

    /**
     * 父级id
     */
    @Column(name = "`parent_id`")
    private String parentId;

    /**
     * parent_id1,parent_id2,....,current_id,
     */
    @Column(name = "`ids`")
    private String ids;

    /**
     * 属性"name"
     */
    @Column(name = "`name`")
    private String name;

    @Column(name = "`sort_no`")
    private Integer sortNo;

    /**
     * 状态 0禁用 1启用
     */
    @Column(name = "`status`")
    private Integer status;
    
    @Transient
    private List<BaseBrand> children;
    
    

    public List<BaseBrand> getChildren() {
		return children;
	}

	public void setChildren(List<BaseBrand> children) {
		this.children = children;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public String getIds() {
		return ids;
	}

	public void setIds(String ids) {
		this.ids = ids;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getSortNo() {
		return sortNo;
	}

	public void setSortNo(Integer sortNo) {
		this.sortNo = sortNo;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public static final String ID = "id";

    public static final String PARENT_ID = "parentId";

    public static final String IDS = "ids";

    public static final String NAME = "name";

    public static final String SORT_NO = "sortNo";

    public static final String STATUS = "status";
}